<!--%import("filter/insert_forum.xml")-->
<!--%import("js/forum_admin.js")-->
<!--#include("header.html")-->


<form action="./" method="post" onsubmit="return procFilter(this, insert_forum)" enctype="multipart/form-data">
<input type="hidden" name="page" value="{$page}" />
<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />

<input type="hidden" name="use_anonymous" value="{$module_info->use_anonymous}" />
<input type="hidden" name="allow_anonymous_search" value="{$module_info->allow_anonymous_search}" />
<input type="hidden" name="consultation" value="{$module_info->consultation}" />

<input type="hidden" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}" />
<input type="hidden" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}" />
<input type="hidden" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}" />
	
	
	<h4 class="xeAdmin triggerModuleInfo"><a href="#">{$lang->module_info}</a></h4>
    <table cellspacing="0" class="rowTable containerModuleInfo">

    <!--@if($logged_info->is_admin!='Y')-->
    <input type="hidden" name="mid" value="{$module_info->mid}" />
    <!--@else-->
    <tr>
        <th scope="row"><div>{$lang->mid}</div></th>
        <td>
            <input type="text" name="mid" value="{$module_info->mid}" class="inputTypeText w200" />
            <p>{$lang->about_mid}</p>
        </td>
    </tr>
    <!--@end-->
    <tr>
        <th scope="row"><div>{$lang->module_category}</div></th>
        <td>
            <select name="module_category_srl">
                <option value="0">{$lang->notuse}</option>
                <!--@foreach($module_category as $key => $val)-->
                <option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
                <!--@end-->
            </select>
            <p>{$lang->about_module_category}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->forum_title}</div></th>
        <td>
            <input type="text" name="browser_title" value="{$module_info->browser_title}"  class="inputTypeText w400" />
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','title')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->forum_title_description}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->description}</div></th>
        <td>
            <textarea type="text" name="description" value="{$module_info->description}"  class="inputTypeTextArea w400" />{htmlspecialchars($module_info->description)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','comment')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_description}</p>
        </td>
    </tr>
	</table>
	<script>
	jQuery("h4.triggerModuleInfo").click(function () {
	jQuery("table.containerModuleInfo").fadeToggle("100");
	});    
	</script>
	
	
    
    <h4 class="xeAdmin triggerAdminInfo"><a href="#">{$lang->admin_info}</a></h4>
    <table cellspacing="0" class="rowTable containerAdminInfo">
    <tr>
        <th scope="row"><div>{$lang->admin_mail}</div></th>
        <td>
            <input type="text" name="admin_mail" value="{$module_info->admin_mail}"  class="inputTypeText w400" />
            <p>{$lang->about_admin_mail}</p>
        </td>
    </tr>
    </table>
    <script>
	jQuery("h4.triggerAdminInfo").click(function () {
	jQuery("table.containerAdminInfo").fadeToggle("100");
	});    
	</script>
    
    <h4 class="xeAdmin triggerContentInfo"><a href="#">{$lang->content_info}</a></h4>
    <table cellspacing="0" class="rowTable containerContentInfo">
    <tr>
        <th scope="row"><div>{$lang->header_text}</div></th>
        <td>
            <textarea name="header_text" class="inputTypeTextArea fullWidth" id="header_text">{htmlspecialchars($module_info->header_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','header_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_header_text}</p>
        </td>
    </tr>
    <tr>
        <th scope="row"><div>{$lang->footer_text}</div></th>
        <td>
            <textarea name="footer_text" class="inputTypeTextArea fullWidth" id="footer_text">{htmlspecialchars($module_info->footer_text)}</textarea>
            <a href="{getUrl('','module','module','act','dispModuleAdminLangcode','target','footer_text')}" onclick="popopen(this.href);return false;" class="buttonSet buttonSetting"><span>{$lang->cmd_find_langcode}</span></a>
            <p>{$lang->about_footer_text}</p>
        </td>
    </tr>
   
    </table>
	<script>
	jQuery("h4.triggerContentInfo").click(function () {
	jQuery("table.containerContentInfo").fadeToggle("100");
	});    
	</script>
	<table cellspacing="0" class="rowTable">
	 <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
            <span class="button"><input type="button" value="{$lang->cmd_back}" onclick="history.back(); return false;" /></span>
        </th>
	</tr>
	</table>
</form>
